package com.zengqingfa.springboot.redis.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Author: slfx
 * @Date: 2022-10-28
 * @Description:
 **/
@Data
@TableName("com_region_info")
@ApiModel(value = "ComRegionInfo对象", description = "全国行政区域表")
public class ComRegionInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("地区编码")
    private String regionCode;

    @ApiModelProperty("地区名字")
    private String regionName;

    @ApiModelProperty("父节点区域编码(本身为头点则该字段为空)")
    private String pregionCode;

    @ApiModelProperty("区域层级，1省/直辖市 2市 3县级市/县/区 4镇街道办 5居委村委")
    private Integer regionLevel;

    @ApiModelProperty("行政区域简称（字母代码），比如：HKS表示海口市")
    private String asstCode;

    @ApiModelProperty("是否启用(0 否 1 是)")
    private Integer usable;

    @ApiModelProperty("邮政编码")
    private String zipCode;

    @ApiModelProperty("电话区号")
    private String areaCode;

    @ApiModelProperty("经度")
    private String longitude;

    @ApiModelProperty("纬度")
    private String latitude;

    @ApiModelProperty("创建人")
    private String createdBy;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新人")
    private String updatedBy;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("版本号")
    private Integer version;


}
